package com.wnagyanli.feignconsumer.service;

import com.wnagyanli.feignconsumer.entity.user;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("springCloud-service-provider")
public interface helloService {
    @RequestMapping("/service/hello")
     String hello();

    @PostMapping("/post/user2")
    user postUser(@RequestBody user user2);

}
